<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
      <h1>Pedidos</h1>
        <?php echo $this->Html->link('Volver', array('controller' => 'pedidos', 'action' => 'index')); ?>
      <table>
          <tr>
              <th>Id</th>
              <th>Fecha</th>
              <th>Medico</th>
              <th>Paciente</th>
              <th>Monto</th>
              <th>Estado</th>
          </tr>
          <?php foreach ($pedidos as $p):?>
              <tr>
                  <td> <?php echo $p['Pedido']['id']; ?></td>
                  <td><?php echo $p['Pedido']['fecha']; ?></td>
                  <td><?php echo $p['Pedido']['medico']; ?></td>
                  <td><?php echo $p['Pedido']['paciente']; ?></td>
                  <td><?php echo $p['Pedido']['monto']; ?></td>
                  <td><?php echo $p['Pedido']['aceptado']; ?></td>
                  <!-- test-->
              </tr>
          <?php endforeach;?>
      </table>
  </body>
</html>